package com.ld.admin.model.oa;

import java.io.Serializable;
import java.util.Date;

import com.ld.admin.model.system.SystemUser;
import com.ld.shieldsb.annotation.field.DealField.Field;
import com.ld.shieldsb.annotation.field.db.Unique;
import com.ld.shieldsb.annotation.field.link.Link;
import com.ld.shieldsb.annotation.model.ModelAnno.Model;
import com.ld.shieldsb.annotation.model.ModelAnno.TableName;

import lombok.Data;

/**
 * 
 * 座次表(sys_user_seats)
 * 
 * @ClassName SysUserSeatsModel
 * @author <a href="mailto:donggongai@126.com" target="_blank">吕凯</a>
 * @date 2019年04月17日 11:39:34
 *
 */
@Model(name = "座次表")
@TableName("sys_user_seats")
@Data
public class SysUserSeatsModel implements Serializable {
    private static final long serialVersionUID = 3272885758088983518L;

    /*主键*/
    private Long id;
    /*座次号，可能与工号绑定*/
    @Unique
    @Field(name = "座位号")
    private String seatId;
    /*用户id*/
    private Long userId;
    /*用户姓名*/
    private String userName;
    /*群组*/
    private String userGroup;
    /*创建人*/
    private Long createBy;
    /*创建人姓名*/
    private String createName;
    /*创建时间*/
    private Date createTime;
    /*修改人*/
    private Long updateBy;
    /*修改人姓名*/
    private String updateName;
    /*修改时间*/
    private Date updateTime;
    /*状态0正常-1删除*/
    private Integer state;

    /*与浏览器左侧的距离*/
    private String leftv;
    /*与浏览器上方的边距*/
    private String topv;
    /*宽度*/
    private String width;
    /*高度*/
    private String height;

    /**
     * 查询关联对象，field表示通过哪个字段进行关联
     */
    @Link(field = "userId")
    private SystemUser user;
}
